<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0"> 
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .box {
            width: 700px;
            height: 100vh;
            display: flex;
            flex-direction: column;
            /* border: 1px solid; */
            margin: auto;
        }

        .container {
            display: flex;
            justify-content: space-between;
            height: 600px;
            flex-direction: column;
        }

        .right {
            width: 150px;
            padding-right: 20px;
            display: flex;
            justify-content: space-between;

        }

        .center {
            text-align: center;
        }

        .right-child {
            width: 80px;
            height: 30px;
            background-color: pink;
            border: 1px solid;
            border-radius: 50px;
            display: flex;
            justify-content: space-between;
            cursor: pointer;
        }

        .footer {
            width: 450px;
            height: 150px;
            margin: auto;
            border: 1px solid;
            font-size: 25px;
            border-left: none;
            border-right: none;
            border-bottom: none;
        }

        .top {
            display: flex;
            justify-content: space-between;
            padding-top: 20px;
        }

        .a {
            width: 650px;
            height: 100px;
            margin: auto;
            display: flex;
            padding: 0;
            justify-content: space-between;
            align-items: center;
        }

        .button {
            width: 450px;
            height: 60px;
            font-size: 35px;
            background-color: #0d9e65;
            border-radius: 50px;
            margin-top: 20px;
            border: none;
            color: aliceblue;
            cursor: pointer;
            outline: none;
        }
        .loading{
            position: fixed;
            width: 700px;
            height: 100vh;
            position: absolute;
            background-color: rgba(0, 0, 0, 0.1);
            z-index: 99;
            font-size: 40px;
            display: none;
            
        }
        .loading-container{
            display: flex;
            justify-content: center;
            align-items: center;
        }
    </style>

</head>

<body>
    <div class="box">
        <div class="container">
            <div class="a">
                <div class="left">叉烧芋粒饺</div>
                <div class="right">
                    <div class="center">$5.93</div>
                    <div class="right-child">
                        <div class="subtract">-</div>
                        <div class="sum">0</div>
                        <div class="add">+</div>
                    </div>
                </div>
            </div>
            <div class="a">
                <div class="left">菜肉饺</div>
                <div class="right">
                    <div class="center">$6.50</div>
                    <div class="right-child">
                        <div class="subtract">-</div>
                        <div class="sum">0</div>
                        <div class="add">+</div>
                    </div>
                </div>
            </div>
            <div class="a">
                <div class="left">菜饺</div>
                <div class="right">
                    <div class="center">$6.50</div>
                    <div class="right-child">
                        <div class="subtract">-</div>
                        <div class="sum">0</div>
                        <div class="add">+</div>
                    </div>
                </div>
            </div>
            <div class="a">
                <div class="left">上海锅贴</div>
                <div class="right">
                    <div class="center">$6.50</div>
                    <div class="right-child">
                        <div class="subtract">-</div>
                        <div class="sum">0</div>
                        <div class="add">+</div>
                    </div>
                </div>
            </div>
            <div class="a">
                <div class="left">干味煎饺</div>
                <div class="right">
                    <div class="center">$6.95</div>
                    <div class="right-child">
                        <div class="subtract">-</div>
                        <div class="sum">0</div>
                        <div class="add">+</div>
                    </div>
                </div>
            </div>
        </div>
        <div class="loading">
            <div class="loading-container">
                loading....
            </div>
        </div>
        <div class="footer">
            <div class="top">
                <div>总价:</div>
                <div>$00.00</div>
            </div>
            <button class="button">确认下单</button>
        </div>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/lodash@4.17.20/lodash.min.js"></script>
    <script>
        let addEle = document.querySelectorAll('.add')
        let sumEle = document.querySelectorAll('.sum')
        let subtractEle = document.querySelectorAll('.subtract')


        addEle.onclick = function () {
            console.log('addEle');
        }

    </script>
</body>

</html>